
package code.codeworld.record.browse_record.service;


import code.codeworld.record.browse_record.model.BrowseRecord;
import code.codeworld.record.browse_record.model.vo.BrowseRecordVo;
import code.codeworld.common.kits.Result;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * BrowseRecordService接口
 *
 * @author freecode
 * @date 2023/03/23 00:20
 **/
public interface BrowseRecordService {

    /**
     * 获取BrowseRecord分页
     *
     * @author freecode
     * @date 2023/03/23 00:20
     */
    Page<BrowseRecord> page(BrowseRecordVo browseRecordVo);

    /**
     * 添加BrowseRecord
     *
     * @author freecode
     * @date 2023/03/23 00:20
     */
    Result<String> add(BrowseRecord browseRecord);

    /**
     * 编辑BrowseRecord
     *
     * @author freecode
     * @date 2023/03/23 00:20
     */
    Result<String>  edit(BrowseRecord browseRecord);

    /**
     * 删除BrowseRecord
     *
     * @author freecode
     * @date 2023/03/23 00:20
     */
    void delete(List<BrowseRecord> browseRecordList);

    /**
     * 获取BrowseRecord详情
     *
     * @author freecode
     * @date 2023/03/23 00:20
     */
    BrowseRecord detail(BrowseRecord browseRecord);

    /**
     * 获取BrowseRecord详情
     *
     * @author freecode
     * @date 2023/03/23 00:20
     **/
    BrowseRecord getEntityById(Integer id);

}
